Adwaita: fix treeview dnd column headers
authorLapo Calamandrei <calamandrei@gmail.com>
Sun, 14 Feb 2016 21:30:32 +0000 (22:30 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Sun, 14 Feb 2016 21:30:32 +0000 (22:30 +0100)
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 2c8f41a61bb77e02e1793fa717e2bcf35aeda2f7..26bb5391f3e2b0a3fd9267bdddb3261ac7a5892e 100644 (file)
@@ -1586,35 +1586,35 @@ treeview.view {
         transition: none; //I shouldn't need this
       }
 
-      &.dnd { @extend header.button.dnd; }
     }
 
     button:last-child,
     button:last-child:backdrop { border-right-style: none; }
   }
 
+  button.dnd,
   header.button.dnd { // for treeview-like derive widgets
-    transition: none;
-    color: $selected_bg_color;
-    box-shadow: inset 1px 1px 0 1px $selected_bg_color,
-                inset -1px 0 0 1px $selected_bg_color,
-                inset 1px 1px $base_color, inset -1px 0 $base_color;;
-
-    &:active { @extend header.button.dnd; }
-
-    &:selected { @extend header.button.dnd; }
-
-    &:hover { @extend header.button.dnd; }
+    &:active, &:selected, &:hover, & {
+      padding: 0 6px;
+      transition: none;
+      background-image: none;
+      background-color: $selected_bg_color;
+      color: $base_color;
+      border-radius: 0;
+      border-style: none;
+      box-shadow: inset 0 0 0 1px $base_color;
+      text-shadow: none;
+    }
   }
 }
 
 %column_header_button {
-  padding: 3px 6px;
-  border-style: none solid solid none;
+  padding: 0 6px;
   border-radius: 0;
   background-image: none;
-  border-color: $bg_color;
   text-shadow: none;
+  border-style: none solid solid none;
+  border-color: $bg_color;
 
   &:disabled {
     border-color: $bg_color;
index 0df50d00cc07a6deb5449ebb4831f5f5e951733b..183156fb53d855127f8eef4106591a685a6aa725 100644 (file)
@@ -1971,18 +1971,28 @@ treeview.view {
   treeview.view header button:last-child,
   treeview.view header button:last-child:backdrop {
     border-right-style: none; }
-  treeview.view header.button.dnd, treeview.view header button.dnd, treeview.view header.button.dnd:active, treeview.view header.button.dnd:selected, treeview.view header.button.dnd:hover {
+  treeview.view button.dnd:active, treeview.view button.dnd:selected, treeview.view button.dnd:hover, treeview.view button.dnd,
+  treeview.view header.button.dnd:active,
+  treeview.view header.button.dnd:selected,
+  treeview.view header.button.dnd:hover,
+  treeview.view header.button.dnd {
+    padding: 0 6px;
     transition: none;
-    color: #215d9c;
-    box-shadow: inset 1px 1px 0 1px #215d9c, inset -1px 0 0 1px #215d9c, inset 1px 1px #292929, inset -1px 0 #292929; }
+    background-image: none;
+    background-color: #215d9c;
+    color: #292929;
+    border-radius: 0;
+    border-style: none;
+    box-shadow: inset 0 0 0 1px #292929;
+    text-shadow: none; }
 
 treeview.view header button, treeview.view header button:hover, treeview.view header button:active {
-  padding: 3px 6px;
-  border-style: none solid solid none;
+  padding: 0 6px;
   border-radius: 0;
   background-image: none;
-  border-color: #393f3f;
-  text-shadow: none; }
+  text-shadow: none;
+  border-style: none solid solid none;
+  border-color: #393f3f; }
   treeview.view header button:disabled {
     border-color: #393f3f;
     background-image: none; }
index ff7d32e417c9a2444ff12d0a24ce36cbc38d6d25..a199c625c311b32208af346a2ee901cf9fafc056 100644 (file)
@@ -1981,18 +1981,28 @@ treeview.view {
   treeview.view header button:last-child,
   treeview.view header button:last-child:backdrop {
     border-right-style: none; }
-  treeview.view header.button.dnd, treeview.view header button.dnd, treeview.view header.button.dnd:active, treeview.view header.button.dnd:selected, treeview.view header.button.dnd:hover {
+  treeview.view button.dnd:active, treeview.view button.dnd:selected, treeview.view button.dnd:hover, treeview.view button.dnd,
+  treeview.view header.button.dnd:active,
+  treeview.view header.button.dnd:selected,
+  treeview.view header.button.dnd:hover,
+  treeview.view header.button.dnd {
+    padding: 0 6px;
     transition: none;
-    color: #4a90d9;
-    box-shadow: inset 1px 1px 0 1px #4a90d9, inset -1px 0 0 1px #4a90d9, inset 1px 1px #ffffff, inset -1px 0 #ffffff; }
+    background-image: none;
+    background-color: #4a90d9;
+    color: #ffffff;
+    border-radius: 0;
+    border-style: none;
+    box-shadow: inset 0 0 0 1px #ffffff;
+    text-shadow: none; }
 
 treeview.view header button, treeview.view header button:hover, treeview.view header button:active {
-  padding: 3px 6px;
-  border-style: none solid solid none;
+  padding: 0 6px;
   border-radius: 0;
   background-image: none;
-  border-color: #e8e8e7;
-  text-shadow: none; }
+  text-shadow: none;
+  border-style: none solid solid none;
+  border-color: #e8e8e7; }
   treeview.view header button:disabled {
     border-color: #e8e8e7;
     background-image: none; }